﻿using System;
using GalaSoft.MvvmLight.Messaging;

namespace JustinAngel.Neurons.Framework.Navigation
{
    public class NavigateToMessage : MessageBase
    {
        public NavigateToMessage(NavigationTarget navigationTarget) : base()
        {
            NavigationTarget = navigationTarget;
        }

        public NavigateToMessage(NavigationTarget navigationTarget, object data)
        {
            NavigationTarget = navigationTarget;
            Data = data;
        }

        public NavigateToMessage(NavigationTarget navigationTarget, Action actionToFireAfterNavigation) : base()
        {
            NavigationTarget = navigationTarget;
            ActionToFireAfterNavigation = actionToFireAfterNavigation;
        }


        public NavigationTarget NavigationTarget { get; set; }

        public object Data { get; set; }

        public Action ActionToFireAfterNavigation { get; set; }

    }
}